<?php


namespace app\api\model;

class Member extends BaseModel {

    protected $hidden = ['createtime'];

    public function getMember($member,$field = '*'){
        return self::field($field)->where('id',$member)->whereOr('openid',$member)->find();
    }

    public function getTeam($agentid,$field='*'){
        return self::field($field)->where('agentid',$agentid)->select();
    }

    public function getTeams($field='*'){
        return  self::field($field)->select();
    }





}



